Skip to content

Commit

Permalink
#86 Fix for end of night images not being uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-developer committed Jun 4, 2024
1 parent dd97e0a commit d2181f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions allsky_discordsend/allsky_discordsend.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,10 @@ def discordsend(params, event):
result = sendFile(fileName, sendURL, s.TOD.title())

if s.args.event == 'nightday':
dateDir = s.getEnvironmentVariable('DATE_DIR')
date = s.getEnvironmentVariable('DATE')
allskyHome = s.getEnvironmentVariable('ALLSKY_HOME')
date = s.getEnvironmentVariable('DATE_NAME')
dateDir = os.path.join(allskyHome, 'images', date)

if startrails:
fileName = os.path.join(dateDir, 'startrails', 'startrails-' + date + '.jpg')
result = sendFile(fileName, startrailsimageurl, 'Star Trails')
Expand Down

0 comments on commit d2181f1

Please sign in to comment.