Kaynağa Gözat

avoid colon character in deleted file_name from webdav

Guénaël Muller 6 yıl önce
ebeveyn
işleme
3589eb1ac8
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      tracim/tracim/lib/webdav/sql_resources.py

+ 1 - 1
tracim/tracim/lib/webdav/sql_resources.py Dosyayı Görüntüle

@@ -89,7 +89,7 @@ class ManageActions(object):
89 89
             new_name = re.sub(r'(\.[^.]+)$', '', new_name)
90 90
 
91 91
         if self._type in [ActionDescription.ARCHIVING, ActionDescription.DELETION]:
92
-            new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H:%M'))
92
+            new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H_%M'))
93 93
         else:
94 94
             new_name = re.sub(
95 95
                 r'( - (%s|%s) the .*)$' % (self._to_name[ActionDescription.DELETION], self._to_name[ActionDescription.ARCHIVING]),