Bot commited on
Commit
2d00728
·
1 Parent(s): 52d5819

fix: clean rebuild with correct indentation

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -215,20 +215,20 @@ def _begin_upload(rec_id):
215
  recordings[rec_id]["storage_link"] = link
216
  recordings[rec_id]["upload_ok"] = bool(link)
217
  recordings[rec_id]["status"] = "done"
218
- _notify = rec.get("notify_url", "")
219
- _chat = rec.get("chat_id", "")
220
- _uname = rec.get("username", "")
221
- _link = recordings[rec_id].get("storage_link", "")
222
- if _notify and _chat:
223
- try:
224
- requests.post(_notify, json={
225
- "rec_id": rec_id, "chat_id": _chat,
226
- "username": _uname, "storage_link": _link
227
- }, timeout=10)
228
- except Exception:
229
- pass
230
-
231
- threading.Thread(target=do_upload, daemon=True).start()
232
 
233
 
234
  def _start(username, room_id, chat_id="", notify_url=""):
 
215
  recordings[rec_id]["storage_link"] = link
216
  recordings[rec_id]["upload_ok"] = bool(link)
217
  recordings[rec_id]["status"] = "done"
218
+ _notify = rec.get("notify_url", "")
219
+ _chat = rec.get("chat_id", "")
220
+ _uname = rec.get("username", "")
221
+ _link = recordings[rec_id].get("storage_link", "")
222
+ if _notify and _chat:
223
+ try:
224
+ requests.post(_notify, json={
225
+ "rec_id": rec_id, "chat_id": _chat,
226
+ "username": _uname, "storage_link": _link
227
+ }, timeout=10)
228
+ except Exception:
229
+ pass
230
+
231
+ threading.Thread(target=do_upload, daemon=True).start()
232
 
233
 
234
  def _start(username, room_id, chat_id="", notify_url=""):