simo 2.1.2__py3-none-any.whl → 2.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of simo might be problematic. Click here for more details.
- simo/core/__pycache__/tasks.cpython-38.pyc +0 -0
- simo/core/tasks.py +13 -2
- {simo-2.1.2.dist-info → simo-2.1.3.dist-info}/METADATA +1 -1
- {simo-2.1.2.dist-info → simo-2.1.3.dist-info}/RECORD +8 -8
- simo-2.1.3.dist-info/entry_points.txt +2 -0
- simo-2.1.2.dist-info/entry_points.txt +0 -2
- {simo-2.1.2.dist-info → simo-2.1.3.dist-info}/LICENSE.md +0 -0
- {simo-2.1.2.dist-info → simo-2.1.3.dist-info}/WHEEL +0 -0
- {simo-2.1.2.dist-info → simo-2.1.3.dist-info}/top_level.txt +0 -0
|
Binary file
|
simo/core/tasks.py
CHANGED
|
@@ -321,10 +321,20 @@ def vacuum_full():
|
|
|
321
321
|
|
|
322
322
|
@celery_app.task
|
|
323
323
|
def update():
|
|
324
|
-
from simo.auto_update import perform_update
|
|
324
|
+
from simo.management.auto_update import perform_update
|
|
325
325
|
perform_update()
|
|
326
326
|
|
|
327
327
|
|
|
328
|
+
@celery_app.task
|
|
329
|
+
def auto_update():
|
|
330
|
+
if not dynamic_settings['core__auto_update']:
|
|
331
|
+
return
|
|
332
|
+
if dynamic_settings['core__latest_version_available'] != \
|
|
333
|
+
pkg_resources.get_distribution('simo').version:
|
|
334
|
+
return update()
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
328
338
|
@celery_app.task
|
|
329
339
|
def update_latest_version_available():
|
|
330
340
|
resp = requests.get("https://pypi.org/pypi/simo/json")
|
|
@@ -397,7 +407,8 @@ def setup_periodic_tasks(sender, **kwargs):
|
|
|
397
407
|
sender.add_periodic_task(1, watch_timers.s())
|
|
398
408
|
sender.add_periodic_task(20, sync_with_remote.s())
|
|
399
409
|
sender.add_periodic_task(60 * 60, clear_history.s())
|
|
400
|
-
sender.add_periodic_task(60 * 60
|
|
410
|
+
sender.add_periodic_task(60 * 60, update_latest_version_available.s())
|
|
411
|
+
sender.add_periodic_task(60 * 60, auto_update.s())
|
|
401
412
|
sender.add_periodic_task(60, drop_fingerprints_learn.s())
|
|
402
413
|
sender.add_periodic_task(60 * 60 * 24, restart_postgresql.s())
|
|
403
414
|
sender.add_periodic_task(60 * 60, low_battery_notifications.s())
|
|
@@ -40,7 +40,7 @@ simo/core/serializers.py,sha256=M3r2P1-Eb5eObOqcI9dttedh4UxgPwWwGYmOfXe3BDk,2030
|
|
|
40
40
|
simo/core/signal_receivers.py,sha256=ZhHg1mLn_Yhin-23Af1WNPfE5hnGYhhVDZDTEjRtO-A,6190
|
|
41
41
|
simo/core/socket_consumers.py,sha256=n7VE2Fvqt4iEAYLTRbTPOcI-7tszMAADu7gimBxB-Fg,9635
|
|
42
42
|
simo/core/storage.py,sha256=YlxmdRs-zhShWtFKgpJ0qp2NDBuIkJGYC1OJzqkbttQ,572
|
|
43
|
-
simo/core/tasks.py,sha256=
|
|
43
|
+
simo/core/tasks.py,sha256=JARqqpVCJbqLtzuae3D8aC3OAWI9wLyp-bs-pyvpHNs,14197
|
|
44
44
|
simo/core/todos.py,sha256=eYVXfLGiapkxKK57XuviSNe3WsUYyIWZ0hgQJk7ThKo,665
|
|
45
45
|
simo/core/types.py,sha256=WJEq48mIbFi_5Alt4wxWMGXxNxUTXqfQU5koH7wqHHI,1108
|
|
46
46
|
simo/core/views.py,sha256=ze8yX0PBLN-DH8B8jol6NKj0hLOAE4WA1rTXf07G-MU,2129
|
|
@@ -73,7 +73,7 @@ simo/core/__pycache__/serializers.cpython-38.pyc,sha256=ibatzlaahJ0keKpml7JWuPsr
|
|
|
73
73
|
simo/core/__pycache__/signal_receivers.cpython-38.pyc,sha256=gKwUVUf1vtIo1Ecvm6xGmBSwpEUALHrXai5pkMmjr9I,4895
|
|
74
74
|
simo/core/__pycache__/socket_consumers.cpython-38.pyc,sha256=NJUr7nRyHFvmAumxxWpsod5wzVVZM99rCEuJs1utHA4,8432
|
|
75
75
|
simo/core/__pycache__/storage.cpython-38.pyc,sha256=BTkYH8QQyjqI0WOtJC8fHNtgu0YA1vjqZclXjC2vCVI,1116
|
|
76
|
-
simo/core/__pycache__/tasks.cpython-38.pyc,sha256=
|
|
76
|
+
simo/core/__pycache__/tasks.cpython-38.pyc,sha256=0jQFCRLPzu_h3blUR0nlvwm-gBK9diTkxyXzyfKbhO4,10038
|
|
77
77
|
simo/core/__pycache__/todos.cpython-38.pyc,sha256=lOqGZ58siHM3isoJV4r7sg8igrfE9fFd-jSfeBa0AQI,253
|
|
78
78
|
simo/core/__pycache__/views.cpython-38.pyc,sha256=ULyoiWRiU_auXTuxzi2RyqYIea9VfaiMuTzkMAWaWOA,2343
|
|
79
79
|
simo/core/__pycache__/widgets.cpython-38.pyc,sha256=sR0ZeHCHrhnNDBJuRrxp3zUsfBp0xrtF0xrK2TkQv1o,3520
|
|
@@ -10494,9 +10494,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10494
10494
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10495
10495
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10496
10496
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10497
|
-
simo-2.1.
|
|
10498
|
-
simo-2.1.
|
|
10499
|
-
simo-2.1.
|
|
10500
|
-
simo-2.1.
|
|
10501
|
-
simo-2.1.
|
|
10502
|
-
simo-2.1.
|
|
10497
|
+
simo-2.1.3.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10498
|
+
simo-2.1.3.dist-info/METADATA,sha256=M_CKoVmkUa9FeKxW8ZFLrp6GqZWEo8iN7HPOIvUkGuw,1817
|
|
10499
|
+
simo-2.1.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
10500
|
+
simo-2.1.3.dist-info/entry_points.txt,sha256=SJBxiDpH7noO0STxVI_eRIsGR-nLgdXXeqCDe8cXlbM,65
|
|
10501
|
+
simo-2.1.3.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10502
|
+
simo-2.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|