Skip to content

Commit

Permalink
Fix migration script's bug
Browse files Browse the repository at this point in the history
  • Loading branch information
whtsky committed Feb 12, 2014
1 parent e99cd6c commit 26ae5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate_from_pbb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def main():
title=pbb_topic["title"],
content=pbb_topic["content"],
author=Account.query.filter_by(username=pbb_topic["author"].lower()).first(),
node=Node.query.filter_by(name=pbb_topic["node"]).first(),
node=Node.query.filter_by(slug=pbb_topic["node"]).first(),
created=timestamp_to_datetime(pbb_topic["created"]),
updated=timestamp_to_datetime(pbb_topic["last_reply_time"])
)
Expand Down

0 comments on commit 26ae5f5

Please sign in to comment.