Commit 7ce7f43b authored by 赵威's avatar 赵威

add printer

parent 22cccd8e
...@@ -29,6 +29,7 @@ def user_portrait_scan_info(): ...@@ -29,6 +29,7 @@ def user_portrait_scan_info():
device_id = key.split(":")[-1] device_id = key.split(":")[-1]
all_count += 1 all_count += 1
print(str(all_count) + ": " + device_id)
write_to_es(device_id) write_to_es(device_id)
print("all count: " + str(all_count)) print("all count: " + str(all_count))
...@@ -49,7 +50,9 @@ def write_to_es(device_id): ...@@ -49,7 +50,9 @@ def write_to_es(device_id):
if __name__ == "__main__": if __name__ == "__main__":
device_id = "androidid_a25a1129c0b38f7b" # device_id = "androidid_a25a1129c0b38f7b"
write_to_es(device_id) # write_to_es(device_id)
user_portrait_scan_info()
print("done: " + str(datetime.datetime.now())) print("done: " + str(datetime.datetime.now()))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment