Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -195,8 +195,8 @@ async def sms_posts(instance: ResultItem, idx: str = None, action: str = "add")
|
|
195 |
else: # update
|
196 |
vars(existing).update(vars(instance))
|
197 |
await session.commit()
|
198 |
-
await session.refresh(
|
199 |
-
result =
|
200 |
except Exception as e:
|
201 |
code = 0
|
202 |
error = str(e)
|
|
|
195 |
else: # update
|
196 |
vars(existing).update(vars(instance))
|
197 |
await session.commit()
|
198 |
+
await session.refresh(existing)
|
199 |
+
result = existing
|
200 |
except Exception as e:
|
201 |
code = 0
|
202 |
error = str(e)
|