Ilya_Khonenko_honenkoi@gmail.com#7
Conversation
|
Please change commit messages or squash commits. Unfortunatelly right now half of the commit messages are really uninforamtive. |
|
Here is some feedback of your application work:
|
Fixed |
…into Html or Pdf format
|
Good job, everything works fine. |
… create web server on flask with postgresql. create dockerfile and docker-compose for docker containers.
|
|
Please make |
| DEBUG [2019-11-25 21:10:55,763] http://127.0.0.1:5000 "GET /version/ HTTP/1.1" 200 3 | ||
| INFO [2019-11-25 21:10:57,182] Website is working | ||
| DEBUG [2019-11-25 21:10:57,189] Starting new HTTP connection (1): 127.0.0.1:5000 | ||
| DEBUG [2019-11-25 21:11:41,580] http://127.0.0.1:5000 "GET /print/ HTTP/1.1" 200 10160 |
There was a problem hiding this comment.
Logging files should not be checked in to GIT
| if (index == limit): | ||
| break |
There was a problem hiding this comment.
It is better to use slices instead of comparing index with limit on each iteration
Same for other occurrences.
| finally: | ||
| con.close() |
There was a problem hiding this comment.
This may potentially cause UnboundLocalError when variable referenced before assignment.
This is possible in case we will fail to connect to DB for some reason.
It is better to do as stated in docs:
con = psycopg2.connect....
try:
...
finally:
con.close()
Same for another similar situation in news_parser file.
|
Here is feedback on your application work: Overall aside from couple mishaps the code looks decent, commit messages informative and correspond to the recommended commit message style. Codestyle mostly corresponds to the PEP8 guidelines. Code is readable and clear. The application is decently structured. |
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| app.run(debug=True) |
There was a problem hiding this comment.
Debug should not be True
| links: | ||
| - localhost | ||
|
|
||
| localhost: |
There was a problem hiding this comment.
Why you database service is called localhost? It may cause misunderstanding
There was a problem hiding this comment.
after testing forgot to change


[Iteration 4] Format converter. Without unit tests.