Skip to content

Commit

Permalink
fix(printing): fix printer descriptions being overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnans2006 authored and alanzhu0 committed Nov 29, 2023
1 parent dc02085 commit d9ad6ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions intranet/apps/printing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def get_printers() -> Dict[str, str]:
# And make sure we don't set an empty description
if description:
printers[last_name] = description
last_name = None

cache.set(key, printers, timeout=settings.CACHE_AGE["printers_list"])
return printers
Expand Down

0 comments on commit d9ad6ad

Please sign in to comment.