Skip to content

Commit

Permalink
chore: changes to let lint checks pass
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushtools authored and alanzhu0 committed May 20, 2024
1 parent 32817d3 commit 96e7281
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions intranet/apps/eighth/views/admin/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ def done(self, form_list, **kwargs):

@eighth_admin_required
def eighth_admin_distribute_action(request):
block = None
if "users" in request.POST:
activity_user_map = {}
for item in request.POST:
Expand Down
2 changes: 1 addition & 1 deletion intranet/apps/eighth/views/attendance.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_template_names(self):
def get_form_kwargs(self, step=None):
kwargs = {}
block = None

block_title = None
if step == "block":
show_all_blocks = "show_all_blocks" in self.request.GET or "block" in self.request.GET
if show_all_blocks:
Expand Down
1 change: 1 addition & 0 deletions intranet/apps/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def picture_view(request, user_id, year=None):
"""
user = get_object_or_404(get_user_model(), id=user_id)
default_image_path = os.path.join(settings.PROJECT_ROOT, "static/img/default_profile_pic.png")
image_buffer = None

img = None
if year is None:
Expand Down
1 change: 1 addition & 0 deletions intranet/utils/deletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def set_historical_user(collector, field, sub_objs, using):


def handle_eighth_sponsor_deletion(in_obj, eighth_sponsor):
original = None
teststaff, _ = get_user_model().objects.get_or_create(id=7011)
c = Collector(using="default")
c.collect([in_obj])
Expand Down

0 comments on commit 96e7281

Please sign in to comment.