mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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.QtGui import *
|
||||||
from PyQt4.QtCore 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
|
# compatability
|
||||||
def unpickleWxFont(*args):
|
def unpickleWxFont(*args):
|
||||||
|
@ -73,6 +74,8 @@ class Config(dict):
|
||||||
'alternativeTheme': False,
|
'alternativeTheme': False,
|
||||||
'showStudyScreen': True,
|
'showStudyScreen': True,
|
||||||
'showStudyOptions': False,
|
'showStudyOptions': False,
|
||||||
|
'created': time.time(),
|
||||||
|
'id': genID(),
|
||||||
}
|
}
|
||||||
for (k,v) in fields.items():
|
for (k,v) in fields.items():
|
||||||
if not self.has_key(k):
|
if not self.has_key(k):
|
||||||
|
|
Loading…
Reference in a new issue