You've already forked Douyin_Web_Live
close mongo connection
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -59,6 +59,8 @@ class Base:
|
||||
except Exception as e:
|
||||
print(self.instance.common.method + ' persists error')
|
||||
print(traceback.format_exc())
|
||||
finally:
|
||||
store.close()
|
||||
|
||||
def __str__(self):
|
||||
pass
|
||||
|
@ -16,4 +16,4 @@ class RoomUserSeqMessage(Base):
|
||||
return self.instance.totalUserStr
|
||||
|
||||
def __str__(self):
|
||||
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【观看人数】' + self.format_content()
|
||||
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【观看人数】' + '当前在线:' + str(self.instance.total) + ',历史总计:' + self.format_content()
|
Reference in New Issue
Block a user