Skip to content

Commit a0383e5

Browse files
committed
fixed post date when edit post
1 parent c2ff655 commit a0383e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

post.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def create_new_post(self, post_data):
9898

9999
def edit_post(self, post_id, post_data):
100100
self.response['error'] = None
101+
del post_data['date']
101102
try:
102103
self.collection.update({'_id': ObjectId(post_id)}, {"$set": post_data}, upsert=False)
103104
self.response['data'] = True

0 commit comments

Comments
 (0)