def complete(self): # TODO: Add task to create a DB/Table or # IDEA: Add an except for no table - create table then check databsse for complete if self.debug: clean_twitter_table() # DEBUG: REMOVE print('DELETING TABLE FOR DEBUGGING!!!!!!!!!!!!!!!!!') try: local_ = pd.read_csv(self.input().path) dbase_ = Twitter.data_by_date(self.hour) print('#' * 25) print(len(local_)) # TODO: Logging print(len(dbase_)) # TODO: Logging # TODO: If else raise data not written to db print(len(local_.index) == len(dbase_.index)) # TODO: If else raise data not written to db print('#' * 25) return len(local_.index) == len(dbase_.index) except (FileNotFoundError, KeyError): print() return False