Преглед изворни кода

[DATALAD] Recorded changes

julien colomb пре 2 година
родитељ
комит
7eb7903096
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      .scripts/datalad_sync.py

+ 2 - 2
.scripts/datalad_sync.py

@@ -1,4 +1,4 @@
-from heapq import merge
+from datetime import datetime
 import os
 import sys
 
@@ -25,7 +25,7 @@ dl.status(recursive=True, eval_subdataset_state ='commit', result_renderer ='tai
 commitmessage = input("Optionally enter a commit message, and hit return: ")
 if not commitmessage:
     print("using date as commit message")
-    commitmessage = "commit on" + {datetime.now().strftime('%Y-%m-%d')}
+    commitmessage = print("commit on" , datetime.now())
 
 # sync
 dl.update(how='merge', recursive=True)