remove print statements
This commit is contained in:
1
index.py
1
index.py
@ -173,7 +173,6 @@ class HttpDispatcher(resource.Resource):
|
|||||||
|
|
||||||
def render_GET(self, request: Request) -> bytes:
|
def render_GET(self, request: Request) -> bytes:
|
||||||
test = self.map_get.match(request.uri.decode())
|
test = self.map_get.match(request.uri.decode())
|
||||||
print(test)
|
|
||||||
client_ip = Utils.get_ip_addr(request)
|
client_ip = Utils.get_ip_addr(request)
|
||||||
|
|
||||||
if test is None:
|
if test is None:
|
||||||
|
@ -525,9 +525,6 @@ class SaoGetHeroLogUserDataListResponse(SaoBaseResponse):
|
|||||||
self.last_set_skill_slot4_skill_id.append(hero_data[i][10])
|
self.last_set_skill_slot4_skill_id.append(hero_data[i][10])
|
||||||
self.last_set_skill_slot5_skill_id.append(hero_data[i][11])
|
self.last_set_skill_slot5_skill_id.append(hero_data[i][11])
|
||||||
|
|
||||||
#print(self.user_hero_log_id)
|
|
||||||
#print(list(map(str,self.user_hero_log_id)))
|
|
||||||
|
|
||||||
# hero_log_user_data_list
|
# hero_log_user_data_list
|
||||||
self.user_hero_log_id = list(map(str,self.user_hero_log_id)) #str
|
self.user_hero_log_id = list(map(str,self.user_hero_log_id)) #str
|
||||||
self.hero_log_id = list(map(int,self.user_hero_log_id)) #int
|
self.hero_log_id = list(map(int,self.user_hero_log_id)) #int
|
||||||
|
@ -64,7 +64,7 @@ class SaoReader(BaseReader):
|
|||||||
enabled
|
enabled
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
self.logger.error(err)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ class SaoReader(BaseReader):
|
|||||||
enabled
|
enabled
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
self.logger.error(err)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ class SaoReader(BaseReader):
|
|||||||
enabled
|
enabled
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
self.logger.error(err)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ class SaoReader(BaseReader):
|
|||||||
enabled
|
enabled
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
self.logger.error(err)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ class SaoReader(BaseReader):
|
|||||||
enabled
|
enabled
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
self.logger.error(err)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
||||||
|
|
||||||
@ -223,7 +223,7 @@ class SaoReader(BaseReader):
|
|||||||
enabled
|
enabled
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
self.logger.error(err)
|
||||||
elif len(titleId) < 6: # current server code cannot have multiple lengths for the id
|
elif len(titleId) < 6: # current server code cannot have multiple lengths for the id
|
||||||
continue
|
continue
|
||||||
except Exception:
|
except Exception:
|
||||||
@ -249,6 +249,6 @@ class SaoReader(BaseReader):
|
|||||||
enabled
|
enabled
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
self.logger.error(err)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
self.logger.warning(f"Couldn't read csv file in {self.bin_dir}, skipping")
|
||||||
|
@ -69,7 +69,6 @@ class SaoProfileData(BaseData):
|
|||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
print(result.lastrowid)
|
|
||||||
return result.lastrowid
|
return result.lastrowid
|
||||||
|
|
||||||
def get_profile(self, user_id: int) -> Optional[Row]:
|
def get_profile(self, user_id: int) -> Optional[Row]:
|
||||||
|
Reference in New Issue
Block a user