- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
def run(self):
count = 0
while True:
if count < 5:
self.saveUsers(self.queue.get())
count += 5
else:
GlobalConfig().setUsers(self.db.selectUsers())
count = 0
self.db.close()