1
0

finish server - nodebug

This commit is contained in:
2021-02-07 13:44:16 +08:00
parent cd53c42e23
commit c7f8c632ee
4 changed files with 208 additions and 16 deletions

View File

@@ -278,8 +278,15 @@ class CalendarDatabase(object):
analyseData[7] = cache
if reAnalyseLoop:
pass
# todo: finish this, re-compute loop data and upload it into list
# re-compute loop data and upload it into list
sqlList.append('[ccn_loopDateTimeStart] = ?')
argumentsList.append(analyseData[5])
sqlList.append('[ccn_loopDateTimeEnd] = ?')
argumentsList.append(dt.ResolveLoopStr(
analyseData[8],
analyseData[5],
analyseData[7]
))
# execute
argumentsList.append(uuid)
@@ -296,9 +303,9 @@ class CalendarDatabase(object):
newuuid = utils.GenerateUUID()
lastupdate = utils.GenerateUUID()
# todo: analyse loopRules and output following 2 fileds.
# analyse loopRules and output following 2 fileds.
loopDateTimeStart = eventDateTimeStart
loopDateTimeEnd = eventDateTimeEnd
loopDateTimeEnd = dt.ResolveLoopStr(loopRules, eventDateTimeStart, timezoneOffset)
self.cursor.execute('INSERT INTO calendar VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);',
(newuuid,