python3 compatibility + webapp to flask refactoring

This commit is contained in:
Kaan Soral
2024-01-27 21:17:54 +03:00
parent d7c7fee91c
commit 915613b07e
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -203,12 +203,12 @@ def all_character_cron(num):
item=element.info.slots[slot]
if item and not item.get("oo"):
item["oo"]=element.info.name
change=True
change=True
for i in xrange(len(gf(element,"items",[]))):
item=gf(element,"items",[])[i]
if item and not item.get("oo"):
item["oo"]=element.info.name
change=True
change=True
if change: element.put()
def all_cbackup_cron(num):
+5 -1
View File
@@ -1,4 +1,3 @@
version: 4 #2-new UI | 3-new font dynamics | 4-python3
runtime: python312
app_engine_apis: true
threadsafe: true
@@ -32,3 +31,8 @@ handlers:
static_dir: js
- url: .*
script: auto
env_variables:
NDB_USE_CROSS_COMPATIBLE_PICKLE_PROTOCOL: True
MEMCACHE_USE_CROSS_COMPATIBLE_PROTOCOL: True
DEFERRED_USE_CROSS_COMPATIBLE_PICKLE_PROTOCOL: True