We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be0398 commit feba54aCopy full SHA for feba54a
newswriter/views/default.py
@@ -464,11 +464,13 @@ def articleEndPoint(pkid):
464
# this is a new one and request.json['uuid'] is mandatory
465
current_app.logger.debug("Creating a new Article")
466
article = Article(
467
+ id=pkid,
468
headline=request.json['headline'],
469
credit_line=request.json['creditline'],
470
excerpt=request.json['summary'],
471
content=json.dumps(request.json['content']),
472
author_id=current_user.id,
473
+ board_id=Board.getUserBoard(current_user).name
474
)
475
article.keywords = request.json['keywords']
476
db.session.add(article)
0 commit comments