X-Git-Url: https://projects.mako.cc/source/mw/blobdiff_plain/e670001ebb36dc1592e94b60c271232e427f3d64..90afbee67cd871468f755c9a9769d53adca9941c:/src/mw/metadir.py diff --git a/src/mw/metadir.py b/src/mw/metadir.py index 4549a29..67e0b09 100644 --- a/src/mw/metadir.py +++ b/src/mw/metadir.py @@ -70,10 +70,10 @@ class Metadir(object): # create cache/pages/ os.mkdir(os.path.join(self.location, 'cache', 'pages'), 0755) - def pagedict_add(self, pagename, pageid): + def pagedict_add(self, pagename, pageid, currentrv): fd = file(os.path.join(self.location, 'cache', 'pagedict'), 'r+') pagedict = json.loads(fd.read()) - pagedict[pagename] = int(pageid) + pagedict[pagename] = {'id': int(pageid), 'currentrv': int(currentrv)} fd.seek(0) fd.write(json.dumps(pagedict)) fd.truncate()