tap order 数据写入mysql

This commit is contained in:
pengtao 2019-10-16 17:29:24 +08:00
parent 6793201d76
commit 1b6e80f289

View File

@ -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()