tap order 数据写入mysql
This commit is contained in:
parent
6793201d76
commit
1b6e80f289
@ -168,13 +168,17 @@ class TapTapReport:
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) == 2:
|
||||
if len(sys.argv) == 3:
|
||||
day = sys.argv[1]
|
||||
methods = sys.argv[2]
|
||||
else:
|
||||
day = (datetime.date.today() - datetime.timedelta(days=1)).strftime('%Y-%m-%d')
|
||||
tap = TapTapReport(day)
|
||||
#tap.get_order()
|
||||
if methods == 'data':
|
||||
tap.get_order()
|
||||
elif methods == "build":
|
||||
tap.build_report()
|
||||
|
||||
else:
|
||||
print("PLS input methods in ('data','build')")
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user