phanterpwa 13.13.14__py3-none-any.whl → 13.13.15__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.
- phanterpwa/__init__.py +1 -1
- phanterpwa/backend/request_handlers/auth.py +15 -12
- {phanterpwa-13.13.14.dist-info → phanterpwa-13.13.15.dist-info}/METADATA +1 -1
- {phanterpwa-13.13.14.dist-info → phanterpwa-13.13.15.dist-info}/RECORD +9 -9
- {phanterpwa-13.13.14.dist-info → phanterpwa-13.13.15.dist-info}/LICENSE +0 -0
- {phanterpwa-13.13.14.dist-info → phanterpwa-13.13.15.dist-info}/WHEEL +0 -0
- {phanterpwa-13.13.14.dist-info → phanterpwa-13.13.15.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-13.13.14.dist-info → phanterpwa-13.13.15.dist-info}/entry_points.txt +0 -0
- {phanterpwa-13.13.14.dist-info → phanterpwa-13.13.15.dist-info}/top_level.txt +0 -0
phanterpwa/__init__.py
CHANGED
|
@@ -3380,8 +3380,9 @@ class SMSGateway(web.RequestHandler):
|
|
|
3380
3380
|
|
|
3381
3381
|
|
|
3382
3382
|
class AuthActivityNoRelational():
|
|
3383
|
-
def __init__(self, DALDatabase):
|
|
3383
|
+
def __init__(self, DALDatabase, limit_clean=2000):
|
|
3384
3384
|
self.DALDatabase = DALDatabase
|
|
3385
|
+
self.limit_clean = limit_clean
|
|
3385
3386
|
|
|
3386
3387
|
def get_rows_by_user_id(self, id_user, limit=100):
|
|
3387
3388
|
db = self.DALDatabase
|
|
@@ -3403,7 +3404,8 @@ class AuthActivityNoRelational():
|
|
|
3403
3404
|
date_activity=date_activity
|
|
3404
3405
|
)
|
|
3405
3406
|
db.commit()
|
|
3406
|
-
self.
|
|
3407
|
+
if self.limit_clean:
|
|
3408
|
+
self.clean(id_user)
|
|
3407
3409
|
|
|
3408
3410
|
def get_last_activity(self, id_user):
|
|
3409
3411
|
db = self.DALDatabase
|
|
@@ -3411,16 +3413,17 @@ class AuthActivityNoRelational():
|
|
|
3411
3413
|
return row
|
|
3412
3414
|
|
|
3413
3415
|
def clean(self, id_user):
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3416
|
+
if self.limit_clean:
|
|
3417
|
+
db = self.DALDatabase
|
|
3418
|
+
exedent_records = db(
|
|
3419
|
+
db.auth_activity_no_relational.id_user == int(id_user)
|
|
3420
|
+
)._select(
|
|
3421
|
+
db.auth_activity_no_relational.id,
|
|
3422
|
+
orderby=~db.auth_activity_no_relational.id,
|
|
3423
|
+
limitby=(self.limit_clean, self.limit_clean + 1000)
|
|
3424
|
+
)
|
|
3425
|
+
db(db.auth_activity_no_relational.id.belongs(exedent_records)).delete()
|
|
3426
|
+
db.commit()
|
|
3424
3427
|
|
|
3425
3428
|
|
|
3426
3429
|
class AuthUserAutoComplete(web.RequestHandler):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
phanterpwa/__init__.py,sha256
|
|
1
|
+
phanterpwa/__init__.py,sha256=HRbHeL29-bWMvaqYhP3rzuj8fiQpZLm1WzFb_YhLVWE,398
|
|
2
2
|
phanterpwa/__main__.py,sha256=1vSHtv6-sgAgpZiklf9bwarXX1b-fmKx1rjwJw4h78o,4017
|
|
3
3
|
phanterpwa/compiler.py,sha256=Je3qtVO_cZ69_PPWcXKyBgnRfQ-Ev-zkZ3UTN-ddOTQ,47478
|
|
4
4
|
phanterpwa/configer.py,sha256=O0IO5rf-hwFNdBjcz94OF-fqXKTWbqPElTsfS5V2beY,26327
|
|
@@ -22,7 +22,7 @@ phanterpwa/backend/pydal/gallery.py,sha256=nETfQ2Dv-0N94Ypq14uGiDKeGlWgxDHLjY4s1
|
|
|
22
22
|
phanterpwa/backend/pydal/internal_messages.py,sha256=DYDNWpjrvAM0Nn4m5fGkJXJsMVQjwuJgcMaRzOEzmE4,1379
|
|
23
23
|
phanterpwa/backend/request_handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
phanterpwa/backend/request_handlers/admin.py,sha256=-wccEEV-JaVWPFLnX4WQ0TOjiCHRnVmPixfc0feYImk,59625
|
|
25
|
-
phanterpwa/backend/request_handlers/auth.py,sha256=
|
|
25
|
+
phanterpwa/backend/request_handlers/auth.py,sha256=hdbhdtyjVG_lqm__X_0fG9zTOmpCF3AjCSwMIRbLlgw,167385
|
|
26
26
|
phanterpwa/backend/request_handlers/cas.py,sha256=x041v85dklkP9dPmDqZVMHZaBXcTwXU9LWnRDk42pl0,24299
|
|
27
27
|
phanterpwa/backend/request_handlers/credentials.py,sha256=9AtfJ3eRkFCnASqeKojdOdR7mof_abmst8zq2p2t5fg,46299
|
|
28
28
|
phanterpwa/backend/request_handlers/errors.py,sha256=_WG-K1Igh_IVn6t1pEzP7QgpBq_2pP2sGz_jbj3Cth4,3775
|
|
@@ -435,10 +435,10 @@ phanterpwa/usual_sass/preloaders/indefined_text.sass,sha256=z4JuUtBrzoqH3HuNFXvN
|
|
|
435
435
|
phanterpwa/usual_sass/preloaders/run_points.sass,sha256=EYl93ljfgAc-ZLJ0VScrCoIlHP7Nr6NLdxj1zk2wm_E,3367
|
|
436
436
|
phanterpwa/usual_sass/preloaders/square.sass,sha256=TOsh9muP4zkYLUJcw4i1LeRs60NrtgRWBk_1oMt2_58,1348
|
|
437
437
|
phanterpwa/usual_sass/preloaders/squares.sass,sha256=kH1I89qEfmbvYxCtKFVNcxP5bWIjnqbheXVnyGF0VNo,3862
|
|
438
|
-
phanterpwa-13.13.
|
|
439
|
-
phanterpwa-13.13.
|
|
440
|
-
phanterpwa-13.13.
|
|
441
|
-
phanterpwa-13.13.
|
|
442
|
-
phanterpwa-13.13.
|
|
443
|
-
phanterpwa-13.13.
|
|
444
|
-
phanterpwa-13.13.
|
|
438
|
+
phanterpwa-13.13.15.dist-info/LICENSE,sha256=lGEW1PRSZOkug2-d0IJgryCjqt6zhxN5x9pFgy3lx2E,1087
|
|
439
|
+
phanterpwa-13.13.15.dist-info/METADATA,sha256=hFhW660SXOff3JY7S-GrPUiCfJxKOc9A87WoezIDlSQ,1940
|
|
440
|
+
phanterpwa-13.13.15.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
441
|
+
phanterpwa-13.13.15.dist-info/dependency_links.txt,sha256=Pslekmz-4l1SpBO0x2aYkYZPCScmbrB9HUq1YvXYUzM,40
|
|
442
|
+
phanterpwa-13.13.15.dist-info/entry_points.txt,sha256=siJH2lFXIdsUBDRgcXV4blOb2_iku1vcbqxJ-trIQrw,56
|
|
443
|
+
phanterpwa-13.13.15.dist-info/top_level.txt,sha256=nF1WJ8AByxBv3bLKp3xySR2l2Twrj5n5n7C404lULSk,5319
|
|
444
|
+
phanterpwa-13.13.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|