« first day (268 days earlier)      last day (366 days later) » 

00:01
not sure if I can structure this better, I have:
def get_unseen_notification_count():
    if not isinstance(g.user, User):
        return render_error('Unauthorized'), 401

    unread_count = Notification.query.\
        filter_by(recipient_id=g.user.id, read=NotificationStatus.UNSEEN).\
        count()

    return unread_count
    unseen_notifs = notifications.get_unseen_count()

    if not isinstance(unseen_notifs, int):
        return unseen_notifs
and that as my route I feel bad doing the isinstance with int >_<
Anonymous
00:51
@Downgoat Probably not. We may be approaching time to upgrade
Anonymous
@Downgoat Flask-SocketIO is your friend
Anonymous
@Downgoat I've never heard of pywsgi. uwsgi already supports gevent
Anonymous
@Downgoat Should probably just raise an exception for 401 and try/except it in the route
Anonymous
@Downgoat You didn't restart the server... I guess it resolved itself?
Anonymous
DO says we only hit 86% mem
Anonymous
01:00
I set up an alert to email us when we go over 75% mem
Anonymous
01:25
Since when are we running 17.10? I'm pretty sure I chose 16.04 because LTS o_O
Anonymous
01:43
I'll probably just end up upgrading the droplet to 2 GB
19:59
Algolia is free for open source: algolia.com/for-open-source
20:47
@Mego I've invited you to the team on algolia. I'm going to keep working on notifications for now but we should integrate search sometime
 
2 hours later…
Anonymous
22:51
Cool
23:04
added little indicator to enable PNs
I am a little concerned with the amount of queries I'll be needing to do to load all the notification data so I'll load the descriptions lazily and hopefully it won't look too bad

« first day (268 days earlier)      last day (366 days later) »