django-restit 4.2.160__py3-none-any.whl → 4.2.161__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_restit-4.2.160.dist-info → django_restit-4.2.161.dist-info}/METADATA +1 -1
- {django_restit-4.2.160.dist-info → django_restit-4.2.161.dist-info}/RECORD +7 -7
- incident/tq.py +1 -1
- rest/__init__.py +1 -1
- rest/models/base.py +5 -0
- {django_restit-4.2.160.dist-info → django_restit-4.2.161.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.160.dist-info → django_restit-4.2.161.dist-info}/WHEEL +0 -0
@@ -126,7 +126,7 @@ incident/templates/email/incident_change.html,sha256=tQYphypwLukkVdwH0TB2Szz2VEJ
|
|
126
126
|
incident/templates/email/incident_msg.html,sha256=MZdKhTddUF2MpiH8Z3RTQEmW_ko1n3ajeZ11KLtiLlU,13780
|
127
127
|
incident/templates/email/incident_new.html,sha256=W6nwFQROnyDfMlXub8s02ws4hGnJp16pfgp9xTm_aEc,15185
|
128
128
|
incident/templates/email/incident_plain.html,sha256=AyTv_3ITUwHoAO7Tv_xCODzWQXTV61EdtlphFum0BnM,14739
|
129
|
-
incident/tq.py,sha256=
|
129
|
+
incident/tq.py,sha256=bWcPhwQGMfsTt1Kb80U6uvMnCuqUZMFMEPVQneUPsNM,5228
|
130
130
|
location/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
131
131
|
location/admin.py,sha256=6S97Rlgjkk0jM15sbT1OJRPZbgvKn2rn7duCSazOXq4,297
|
132
132
|
location/geolocate.py,sha256=UgV129vmSxnqYFBYJD2RQVOcC1-lJJ1zUaxDqOJRbG4,1694
|
@@ -378,7 +378,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
|
|
378
378
|
rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
|
379
379
|
rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
|
380
380
|
rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
|
381
|
-
rest/__init__.py,sha256=
|
381
|
+
rest/__init__.py,sha256=ZZl-QgQmlrNh4Joe-BilCYkrd4rBnztS0KqzxKAYu3s,122
|
382
382
|
rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
|
383
383
|
rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
|
384
384
|
rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
|
@@ -411,7 +411,7 @@ rest/middleware/request.py,sha256=JchRNy5L-bGd-7h-KFYekGRvREe2eCkZXKOYqIkP2hI,41
|
|
411
411
|
rest/middleware/session.py,sha256=zHSoQpIzRLmpqr_JvW406wzpvU3W3gDbm5JhtzLAMlE,10240
|
412
412
|
rest/middleware/session_store.py,sha256=1nSdeXK8PyuYgGgIufqrS6j6QpIrQ7zbMNT0ol75e6U,1901
|
413
413
|
rest/models/__init__.py,sha256=M8pvFDq-WCF-QcM58X7pMufYYe0aaQ3U0PwGe9TKbbY,130
|
414
|
-
rest/models/base.py,sha256=
|
414
|
+
rest/models/base.py,sha256=eOvVDwHgKDdBJAnaK2xavGfkjkfpk5Oqy1KfKRjtu6o,72072
|
415
415
|
rest/models/cacher.py,sha256=eKz8TINVhWEqKhJGMsRkKZTtBUIv5rN3NHbZwOC56Uk,578
|
416
416
|
rest/models/metadata.py,sha256=1nQ7CYo9bJHoaXE_hVNaj1-Y7yqhHlf2ZlaD1IfTzic,12904
|
417
417
|
rest/net.py,sha256=LcB2QV6VNRtsSdmiQvYZgwQUDwOPMn_VBdRiZ6OpI-I,2974
|
@@ -514,7 +514,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
514
514
|
ws4redis/settings.py,sha256=KKq00EwoGnz1yLwCZr5Dfoq2izivmAdsNEEM4EhZwN4,1610
|
515
515
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
516
516
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
517
|
-
django_restit-4.2.
|
518
|
-
django_restit-4.2.
|
519
|
-
django_restit-4.2.
|
520
|
-
django_restit-4.2.
|
517
|
+
django_restit-4.2.161.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
518
|
+
django_restit-4.2.161.dist-info/METADATA,sha256=RlhvubtGorzBm7GK3EeMvv9SdwFB3oTHnl_jz1cNsM4,7663
|
519
|
+
django_restit-4.2.161.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
520
|
+
django_restit-4.2.161.dist-info/RECORD,,
|
incident/tq.py
CHANGED
@@ -127,7 +127,7 @@ def run_cleanup(task):
|
|
127
127
|
if count:
|
128
128
|
task.log(f"deleted {count} old Events")
|
129
129
|
|
130
|
-
count = ia.Incident.objects.filter(created__lte=stale
|
130
|
+
count = ia.Incident.objects.filter(created__lte=stale, state=ia.INCIDENT_STATE_IGNORE).delete()[0]
|
131
131
|
if count:
|
132
132
|
task.log(f"deleted {count} old Incidents")
|
133
133
|
|
rest/__init__.py
CHANGED
rest/models/base.py
CHANGED
@@ -1657,6 +1657,10 @@ class RestModel(object):
|
|
1657
1657
|
q[f"properties__int_value__{meta_op}"] = value
|
1658
1658
|
else:
|
1659
1659
|
q[f"properties__value__{meta_op}"] = value
|
1660
|
+
elif value in [1, "1"]:
|
1661
|
+
q[f"properties__int_value"] = value
|
1662
|
+
elif value in [0, "0"]:
|
1663
|
+
q[f"properties__int_value"] = value
|
1660
1664
|
else:
|
1661
1665
|
q["properties__value"] = value
|
1662
1666
|
continue
|
@@ -1699,6 +1703,7 @@ class RestModel(object):
|
|
1699
1703
|
value = rh.toInteger(value)
|
1700
1704
|
q[key] = value
|
1701
1705
|
if bool(q):
|
1706
|
+
rh.debug(q)
|
1702
1707
|
exq = {key[:-4]: q[key] for key in q if key.endswith("__ne")}
|
1703
1708
|
q = {key: q[key] for key in q if not key.endswith("__ne")}
|
1704
1709
|
if bool(exq):
|
File without changes
|
File without changes
|