Преглед на файлове

fixing last database update code

main
Simon Bowie преди 1 седмица
родител
ревизия
f380522ac2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      web/app/resources.py

+ 1
- 1
web/app/resources.py Целия файл

@@ -99,7 +99,7 @@ def get_book_cover(book):

# function to retrieve last updated date from the database
def get_last_date():
resource = Resource.query.order_by(Resource.created.asc()).filter_by(published=True).first()
resource = Resource.query.order_by(Resource.created.desc()).filter_by(published=True).first()
return resource.created.isoformat()

# function to retrieve last commit date from a GitHub repository for a tool

Loading…
Отказ
Запис