Skip to content

Commit

Permalink
Add missing split nom_vern on last discoveries
Browse files Browse the repository at this point in the history
  • Loading branch information
xavyeah39 authored Mar 21, 2024
1 parent 5a918b1 commit df354c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atlas/modeles/repositories/vmObservationsRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ def getLastDiscoveries(connection):
req = connection.execute(text(sql), thisidtype=current_app.config["ATTR_MAIN_PHOTO"])
lastDiscoveriesList = list()
for r in req:
shorterName = None
if r.nom_vern != None:
shorterName = r.nom_vern.split(",")
shorterName = shorterName[0]
temp = {
"date": r.date,
"cd_ref": r.cd_ref,
Expand Down

0 comments on commit df354c5

Please sign in to comment.