Skip to content

Commit

Permalink
Merge pull request #25 from uf-mil/software-projs-use-sheet
Browse files Browse the repository at this point in the history
Software project reminders/reports use reports sheet for members list
  • Loading branch information
cbrxyz authored Feb 25, 2024
2 parents d75a456 + 2e699f9 commit c584330
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@ async def remind_to_join_project(self):
for item in project.items:
if item.assignees:
assigned.update([i.name.lower() for i in item.assignees])
col_no = self.bot.reports_cog.TOTAL_COLUMNS + 1
students = await self.bot.reports_cog.students_status(col_no)
unassigned_members = [
m
for m in self.bot.software_projects_channel.members
if self.bot.egn4912_role in m.roles
and m.display_name.lower() not in assigned
sm.member
for sm in students
if sm.member
and sm.team == Team.SOFTWARE
and sm.name.lower() not in assigned
]
for member in unassigned_members:
embed = discord.Embed(
Expand Down Expand Up @@ -134,10 +137,10 @@ async def whosonwhat(self):
color=discord.Color.teal(),
)
assignments: dict[discord.Member, list[str]] = {}
col_no = self.bot.reports_cog.TOTAL_COLUMNS + 1
students = await self.bot.reports_cog.students_status(col_no)
members = [
m
for m in self.bot.software_projects_channel.members
if self.bot.egn4912_role in m.roles
sm.member for sm in students if sm.member and sm.team == Team.SOFTWARE
]
for member in members:
assignments[member] = []
Expand Down

0 comments on commit c584330

Please sign in to comment.