mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
add id and created time to config
This commit is contained in:
parent
78d20eddf6
commit
c5ec5c51c0
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,8 @@
|
|||
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
import os, sys, cPickle, locale, types, shutil
|
||||
import os, sys, cPickle, locale, types, shutil, time
|
||||
from anki.utils import genID
|
||||
|
||||
# compatability
|
||||
def unpickleWxFont(*args):
|
||||
|
@ -73,6 +74,8 @@ class Config(dict):
|
|||
'alternativeTheme': False,
|
||||
'showStudyScreen': True,
|
||||
'showStudyOptions': False,
|
||||
'created': time.time(),
|
||||
'id': genID(),
|
||||
}
|
||||
for (k,v) in fields.items():
|
||||
if not self.has_key(k):
|
||||
|
|
Loading…
Reference in a new issue