update session dict whien updating from flock server
This commit is contained in:
parent
1ed4b45fe1
commit
63a97c364d
@ -28,7 +28,7 @@ source.include_exts = py,png,jpg,kv,atlas
|
|||||||
#source.exclude_patterns = license,images/*/*.jpg
|
#source.exclude_patterns = license,images/*/*.jpg
|
||||||
|
|
||||||
# (str) Application versioning (method 1)
|
# (str) Application versioning (method 1)
|
||||||
version = 0.2
|
version = 0.7
|
||||||
|
|
||||||
|
|
||||||
# (str) Application versioning (method 2)
|
# (str) Application versioning (method 2)
|
||||||
@ -37,7 +37,7 @@ version = 0.2
|
|||||||
|
|
||||||
# (list) Application requirements
|
# (list) Application requirements
|
||||||
# comma separated e.g. requirements = sqlite3,kivy
|
# comma separated e.g. requirements = sqlite3,kivy
|
||||||
requirements = hostpython3, python3, kivy, plyer, android, mapview, requests, urllib3, chardet, idna, geopy, geographiclib, python-dateutil
|
requirements = hostpython3, python3, kivy, https://github.com/HyTurtle/plyer/archive/master.zip, android, mapview, requests, urllib3, chardet, idna, geopy, geographiclib, python-dateutil
|
||||||
|
|
||||||
# (str) Custom source folders for requirements
|
# (str) Custom source folders for requirements
|
||||||
# Sets custom source for any requirements with recipes
|
# Sets custom source for any requirements with recipes
|
||||||
@ -89,7 +89,7 @@ fullscreen = 0
|
|||||||
android.permissions = INTERNET,ACCESS_FINE_LOCATION,ACCESS_COARSE_LOCATION,WAKE_LOCK,READ_EXTERNAL_STORAGE,WRITE_EXTERNAL_STORAGE
|
android.permissions = INTERNET,ACCESS_FINE_LOCATION,ACCESS_COARSE_LOCATION,WAKE_LOCK,READ_EXTERNAL_STORAGE,WRITE_EXTERNAL_STORAGE
|
||||||
|
|
||||||
# (int) Target Android API, should be as high as possible.
|
# (int) Target Android API, should be as high as possible.
|
||||||
#android.api = 27
|
android.api = 30
|
||||||
|
|
||||||
# (int) Minimum API your APK will support.
|
# (int) Minimum API your APK will support.
|
||||||
#android.minapi = 21
|
#android.minapi = 21
|
||||||
|
|||||||
7
main.py
7
main.py
@ -375,7 +375,12 @@ class FlockompassApp(App):
|
|||||||
if resp:
|
if resp:
|
||||||
self.session_data['last_update'] = isoparse(resp.pop('last_update'))
|
self.session_data['last_update'] = isoparse(resp.pop('last_update'))
|
||||||
|
|
||||||
if 'flock_size' not in resp:
|
if 'flock_size' in resp:
|
||||||
|
self.session_data['flock_lat'] = resp.pop('flock_lat')
|
||||||
|
self.session_data['flock_lon'] = resp.pop('flock_lon')
|
||||||
|
self.session_data['flock_size'] = resp.pop('flock_size')
|
||||||
|
self.session_data['flock_avg_speed'] = resp.pop('flock_avg_speed')
|
||||||
|
else:
|
||||||
self.session_data.pop('flock_avg_speed', None)
|
self.session_data.pop('flock_avg_speed', None)
|
||||||
self.session_data.pop('flock_lat', None)
|
self.session_data.pop('flock_lat', None)
|
||||||
self.session_data.pop('flock_lon', None)
|
self.session_data.pop('flock_lon', None)
|
||||||
|
|||||||
@ -32,7 +32,7 @@ pep517==0.6.0
|
|||||||
pexpect==4.8.0
|
pexpect==4.8.0
|
||||||
pickleshare==0.7.5
|
pickleshare==0.7.5
|
||||||
platformdirs==2.4.0
|
platformdirs==2.4.0
|
||||||
plyer==2.0.0
|
plyer
|
||||||
prompt-toolkit==3.0.21
|
prompt-toolkit==3.0.21
|
||||||
ptyprocess==0.7.0
|
ptyprocess==0.7.0
|
||||||
Pygments==2.10.0
|
Pygments==2.10.0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user