gabcares commited on
Commit
1d0fb45
·
verified ·
1 Parent(s): dcf1a41

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -186,7 +186,7 @@ async def sms_posts(instance: ResultItem, idx: str = None, action: str = "add")
186
  try:
187
  if checker:
188
  if action == "delete":
189
- await session.delete(instance) # Asynchronous
190
  await session.commit()
191
  else: # add or update use add
192
  session.add(instance) # Not asynchronous
 
186
  try:
187
  if checker:
188
  if action == "delete":
189
+ await session.delete(existing) # Asynchronous
190
  await session.commit()
191
  else: # add or update use add
192
  session.add(instance) # Not asynchronous