Skip to content

Commit

Permalink
Update tray.py
Browse files Browse the repository at this point in the history
add string datetime
  • Loading branch information
aliorhun authored Oct 8, 2020
1 parent 35dd5fd commit 8da7366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def on_send_click(self, button):
Gtk.main_iteration()

try:
imagename = summary.MAINDIR + 'ss/ss-' + datetime.datetime.now() + '.jpg'
imagename = summary.MAINDIR + 'ss/ss-' + str(datetime.datetime.now().timestamp()) + '.jpg'
os.system("import -window root "+imagename)
send_window.show_window()
except Exception as e:
Expand Down

0 comments on commit 8da7366

Please sign in to comment.