logic error when pubdate not found
This commit is contained in:
@@ -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=''
|
||||
|
||||
Reference in New Issue
Block a user