polls get sent to all members on logon

dirty fix for the MA nanolines
There's an error with the urllib, downgrading the dependency.
This commit is contained in:
2021-09-01 14:33:33 +02:00
parent 9f1da9a00d
commit 3c8eb7bb70
4 changed files with 38 additions and 15 deletions
+4 -1
View File
@@ -158,8 +158,11 @@ class NanoController:
@command(command="nanolines", params=[Any("profession"), Any("nanoline")], access_level="member",
description="Show nanos by nanoline profession and line name")
def nanolines_prof_strain(self, _, prof, strain):
def nanolines_prof_strain(self, _, prof: str, strain: str):
profession = self.util.get_profession(prof)
if strain.startswith("Artist"):
profession = "Martial Artist"
strain = strain[7:]
nanoline = self.db.query_single(
"SELECT * FROM nanos n WHERE n.strain LIKE ? AND profession =? and type='Crystal' LIMIT 1",
[strain, profession])