Skip to content

Commit

Permalink
Fix wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellRanda committed Oct 20, 2024
1 parent 6875665 commit 471adf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerprice.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def main(argv):
xmlResponse = getEntsoePrice(areacode, apikey)
timeprice = parseXML(xmlResponse, xslt)
logger.info("Entsoe api reurned %i price points", len(timeprice))
if len(timeprice) != 48 or len(timeprice) != 24:
if len(timeprice) != 48 and len(timeprice) != 24:
logger.info("Filling in missing data")
timeprice = fixPriceInfo(timeprice)
logger.info("After fill in %i price points", len(timeprice))
Expand Down

0 comments on commit 471adf7

Please sign in to comment.