sync: fix synchronized URLId

This commit is contained in:
nemunaire 2018-06-23 15:20:45 +02:00 committed by Pierre-Olivier Mercier
parent d05c211a7c
commit e6b1b932f4

View File

@ -88,8 +88,9 @@ func SyncExercices(i Importer, theme fic.Theme) []string {
} else {
dmap[eid] = ex
}
} else if e.Title != ename || e.Statement != statement || e.Overview != overview || e.Gain != gain || e.VideoURI != videoURI {
} else if e.Title != ename || e.URLId == "" || e.Statement != statement || e.Overview != overview || e.Gain != gain || e.VideoURI != videoURI {
e.Title = ename
e.URLId = fic.ToURLid(ename)
e.Statement = statement
e.Overview = overview
e.Gain = gain