From 7aff58679093c117151be65ba3140bcec20ee24a Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Thu, 22 Nov 2018 16:25:26 -0300 Subject: [PATCH] channel.pins: use timestamp_ instead of .isoformat --- litecord/blueprints/channel/pins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litecord/blueprints/channel/pins.py b/litecord/blueprints/channel/pins.py index 58959f5..c7007c4 100644 --- a/litecord/blueprints/channel/pins.py +++ b/litecord/blueprints/channel/pins.py @@ -3,6 +3,7 @@ from quart import Blueprint, current_app as app, jsonify from litecord.auth import token_check from litecord.blueprints.checks import channel_check, channel_perm_check from litecord.snowflake import snowflake_datetime +from litecord.types import timestamp_ bp = Blueprint('channel_pins', __name__) @@ -58,7 +59,7 @@ async def add_pin(channel_id, message_id): 'channel', channel_id, 'CHANNEL_PINS_UPDATE', { 'channel_id': str(channel_id), - 'last_pin_timestamp': timestamp.isoformat() + 'last_pin_timestamp': timestamp_(timestamp) } )