summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-08-08 02:33:54 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-08-08 02:33:54 +0800
commit1b2c1152e7ab378ee496935f2dbf0c42ee547a82 (patch)
tree7a8b9570276d804818fd4818253af44c748445c2
parentd230b2bf331fc06ef569ae19abd9848f65f25852 (diff)
downloadpttbbs-1b2c1152e7ab378ee496935f2dbf0c42ee547a82.tar
pttbbs-1b2c1152e7ab378ee496935f2dbf0c42ee547a82.tar.gz
pttbbs-1b2c1152e7ab378ee496935f2dbf0c42ee547a82.tar.bz2
pttbbs-1b2c1152e7ab378ee496935f2dbf0c42ee547a82.tar.lz
pttbbs-1b2c1152e7ab378ee496935f2dbf0c42ee547a82.tar.xz
pttbbs-1b2c1152e7ab378ee496935f2dbf0c42ee547a82.tar.zst
pttbbs-1b2c1152e7ab378ee496935f2dbf0c42ee547a82.zip
Add missing update to extra fields.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6046 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xpttbbs/daemon/postd/postd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pttbbs/daemon/postd/postd.py b/pttbbs/daemon/postd/postd.py
index 25f9b9d9..2dcbdac6 100755
--- a/pttbbs/daemon/postd/postd.py
+++ b/pttbbs/daemon/postd/postd.py
@@ -77,6 +77,8 @@ def LoadPost(query):
return UnpackPost(data)
def SavePost(legacy, keypak, data, extra=None):
+ if extra:
+ data.update(extra._asdict())
logging.debug("SavePost: %r => %r", keypak, data)
key = '%s/%s' % (keypak.board, keypak.file)
g_db.set(key, serialize(data))