Skip to content

Commit 12749c7

Browse files
authored
Fix the 10 places with a stauts typo (#863)
1 parent 00c4ada commit 12749c7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

documentation/DevelopmentGuide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ query = (
126126
)
127127
.where(self.bot.models.Applications.guild_id == str(member.guild.id))
128128
.where(
129-
self.bot.models.Applications.application_stauts
129+
self.bot.models.Applications.application_status
130130
== ApplicationStatus.PENDING.value
131131
)
132132
)

techsupport_bot/commands/application.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ async def approve_application(
336336
return
337337

338338
await application.update(
339-
application_stauts=ApplicationStatus.APPROVED.value
339+
application_status=ApplicationStatus.APPROVED.value
340340
).apply()
341341

342342
await member.add_roles(
@@ -375,7 +375,7 @@ async def deny_application(
375375
await interaction.response.send_message(embed=embed)
376376
return
377377
await application.update(
378-
application_stauts=ApplicationStatus.DENIED.value
378+
application_status=ApplicationStatus.DENIED.value
379379
).apply()
380380

381381
await self.notify_for_application_change(
@@ -637,7 +637,7 @@ async def build_application_embed(
637637
if not new:
638638
embed.add_field(
639639
name="Status",
640-
value=application.application_stauts,
640+
value=application.application_status,
641641
inline=False,
642642
)
643643
embed.set_footer(text=f"User ID: {applicant.id}")
@@ -659,7 +659,7 @@ async def handle_new_application(
659659
guild_id=str(applicant.guild.id),
660660
applicant_name=applicant.name,
661661
applicant_id=str(applicant.id),
662-
application_stauts=ApplicationStatus.PENDING.value,
662+
application_status=ApplicationStatus.PENDING.value,
663663
background=background,
664664
reason=reason,
665665
)
@@ -834,7 +834,7 @@ async def get_applications_by_status(
834834
list[bot.models.Applications]: The list of applications in a oldest first order
835835
"""
836836
query = self.bot.models.Applications.query.where(
837-
self.bot.models.Applications.application_stauts == status.value
837+
self.bot.models.Applications.application_status == status.value
838838
).where(self.bot.models.Applications.guild_id == str(guild.id))
839839
entry = await query.gino.all()
840840
entry.sort(key=lambda entry: entry.application_time)
@@ -857,7 +857,7 @@ async def search_for_pending_application(
857857
)
858858
.where(self.bot.models.Applications.guild_id == str(member.guild.id))
859859
.where(
860-
self.bot.models.Applications.application_stauts
860+
self.bot.models.Applications.application_status
861861
== ApplicationStatus.PENDING.value
862862
)
863863
)
@@ -908,7 +908,7 @@ async def execute(self, config: munch.Munch, guild: discord.Guild) -> None:
908908
" they left"
909909
)
910910
await app.update(
911-
application_stauts=ApplicationStatus.REJECTED.value
911+
application_status=ApplicationStatus.REJECTED.value
912912
).apply()
913913
continue
914914

@@ -929,7 +929,7 @@ async def execute(self, config: munch.Munch, guild: discord.Guild) -> None:
929929
f" the `{role.name}` role"
930930
)
931931
await app.update(
932-
application_stauts=ApplicationStatus.APPROVED.value
932+
application_status=ApplicationStatus.APPROVED.value
933933
).apply()
934934
if audit_log:
935935
embed = discord.Embed(title="Application manage events")

techsupport_bot/core/databases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Applications(bot.db.Model):
2929
guild_id = bot.db.Column(bot.db.String)
3030
applicant_name = bot.db.Column(bot.db.String)
3131
applicant_id = bot.db.Column(bot.db.String)
32-
application_stauts = bot.db.Column(bot.db.String)
32+
application_status = bot.db.Column(bot.db.String)
3333
background = bot.db.Column(bot.db.String)
3434
reason = bot.db.Column(bot.db.String)
3535
application_time = bot.db.Column(

0 commit comments

Comments
 (0)