Moved offset to the class, as due to the scope it couldn't be found
This commit is contained in:
parent
96f61e6ed6
commit
fca698b557
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,6 @@ whitneyMedium = "/usr/share/fonts/whitney-medium.ttf"
|
|||
whitneyBold = "/usr/share/fonts/whitney-bold.ttf"
|
||||
header_height = 125
|
||||
base_height = 345
|
||||
offset = 125
|
||||
banner_background = "{}/bannerTop2.png".format(base_path)
|
||||
banner_bot = "{}/bannerBot.png".format(base_path)
|
||||
|
||||
|
@ -24,6 +23,7 @@ async def create_banner(member, image_title, data):
|
|||
# First ensure the paths we need are created
|
||||
os.makedirs(base_path, exist_ok=True)
|
||||
os.makedirs(tmp_path, exist_ok=True)
|
||||
offset = 125
|
||||
|
||||
# Open up the avatar, save it as a temporary file
|
||||
avatar_url = member.avatar_url
|
||||
|
|
Loading…
Reference in a new issue