log timestamp in dm_images
parent
9de379d72f
commit
b0fdd78d8b
|
@ -268,7 +268,7 @@ def process_dm_images(v, user):
|
||||||
if body:
|
if body:
|
||||||
with open(f"{LOG_DIRECTORY}/dm_images.log", "a+", encoding="utf-8") as f:
|
with open(f"{LOG_DIRECTORY}/dm_images.log", "a+", encoding="utf-8") as f:
|
||||||
if user:
|
if user:
|
||||||
f.write(f'{body.strip()}, {v.username}, {v.id}, {user.username}, {user.id}\n')
|
f.write(f'{body.strip()}, {v.username}, {v.id}, {user.username}, {user.id}, {int(time.time())}\n')
|
||||||
else:
|
else:
|
||||||
f.write(f'{body.strip()}, {v.username}, {v.id}, Modmail, Modmail\n')
|
f.write(f'{body.strip()}, {v.username}, {v.id}, Modmail, Modmail, {int(time.time())}\n')
|
||||||
return body
|
return body
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<th>Image</th>
|
<th>Image</th>
|
||||||
<th>Sender</th>
|
<th>Sender</th>
|
||||||
<th>Sent To</th>
|
<th>Sent To</th>
|
||||||
|
<th>At</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -39,6 +40,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
<td {% if item[5] %}data-time="{{item[5]}}"{% endif %}></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue