logic error when pubdate not found

This commit is contained in:
2024-06-17 10:27:13 +02:00
parent c35c23f073
commit ac8c7251e8
3 changed files with 13 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ from enum import Enum
import re
from dateconverter import *
from datetime import datetime
DEBUG = True
DEBUG = False
def log(*s):
if DEBUG:
@@ -117,7 +117,7 @@ def arrayToClass(titles,companys,locations,dates,links,tag):
log("class job:",jobs[i])
return jobs
else:
print("Something went wrong unequal length of data arrays: ",len(titles),len(companys),len(locations),len(dates))
log("Something went wrong unequal length of data arrays: ",len(titles),len(companys),len(locations),len(dates))
return 0
def jobs_ch_clean_date(date):
newdate=''