Skip to content

Commit

Permalink
changes in length of image name for hidden issues (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
HanilJain authored Mar 10, 2024
1 parent c25a6b7 commit 95fe116
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def update_issue_image_access(sender, instance, **kwargs):
if "hidden" not in old_name:
filename = screenshot.image.name
extension = filename.split(".")[-1]
name = filename[12:99] + "hidden" + str(uuid.uuid4()) + "." + extension
name = filename[:20] + "hidden" + str(uuid.uuid4())[:40] + "." + extension
default_storage.save(f"screenshots/{name}", screenshot.image)
default_storage.delete(old_name)
screenshot.image = f"screenshots/{name}"
Expand Down
6 changes: 3 additions & 3 deletions website/templates/contributor_stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
</thead>
<tbody>
{% for user, stats in user_stats.items %}
<tr class="bg-white border-b dark:bg-[#1d1d1e] dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600">
<tr class="bg-[#1d1d1e] border-b dark:bg-white dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600">
<th scope="row"
class="py-4 px-6 font-semibold text-gray-900 whitespace-nowrap dark:text-white">
class="py-4 px-6 font-semibold text-white whitespace-nowrap dark:text-gray-900">
{{ user }}
</th>
<td class="py-4 px-6 font-medium text-gray-900 whitespace-nowrap dark:text-white">
Expand Down Expand Up @@ -93,7 +93,7 @@
</td>
</tr>
{% empty %}
<tr class="bg-white dark:bg-[#f7f7f7]">
<tr class="bg-[#1d1d1e] dark:bg-[#f7f7f7]">
<td colspan="7" class="py-4 px-6 text-center">No activity found.</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 95fe116

Please sign in to comment.