More debug
This commit is contained in:
parent
0768b4e179
commit
c8e55b5c24
2
app.py
2
app.py
|
@ -259,6 +259,8 @@ if __name__ == '__main__' or 'uwsgi' in __name__:
|
|||
def getRecStatus(self, id):
|
||||
print(REC)
|
||||
print(REC.threads)
|
||||
print(REC.getSelf())
|
||||
print(REC.getSelf().threads)
|
||||
return json.dumps({"data":REC.streamStatus(int(id))})
|
||||
|
||||
pysite = siteRoot()
|
||||
|
|
|
@ -78,6 +78,9 @@ class recordTick(Thread):
|
|||
|
||||
return self.threads[id].status
|
||||
|
||||
def getSelf(self):
|
||||
return self
|
||||
|
||||
def scheduleTick(self):
|
||||
# schedule tick in the next minute
|
||||
self.timer.enter(self.timeToNextMinute(), 1, self.tick)
|
||||
|
|
Loading…
Reference in New Issue