try manually setting the modified flag

pull/59/head
justcool393 2022-12-09 21:41:06 -06:00
parent 77bf35a7ca
commit 3def5b099b
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
from sqlalchemy import nullslast
from sqlalchemy.orm.attributes import flag_modified
from files.classes import *
from files.helpers.alerts import *
@ -466,6 +467,7 @@ def upload_sub_banner(v:User, sub:str):
sub.bannerurls.append(bannerurl)
else:
sub.bannerurls = [bannerurl]
flag_modified(sub, 'bannerurls')
g.db.add(sub)
ma = SubAction(