Browse Source

fixing last database update code

main
Simon Bowie 1 week ago
parent
commit
f380522ac2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      web/app/resources.py

+ 1
- 1
web/app/resources.py View File



# function to retrieve last updated date from the database # function to retrieve last updated date from the database
def get_last_date(): 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() return resource.created.isoformat()


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

Loading…
Cancel
Save