Skip to content

Commit

Permalink
Updated SQL DB creation block
Browse files Browse the repository at this point in the history
Updated the commented section of code to include SFR moderator fund columns (approved_by and mod_included). Also, minor adjustments made to imports.
  • Loading branch information
anthonyadavisii authored Jan 23, 2019
1 parent b1a3b18 commit e99f6bf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sfrbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sqlite3
import os
import discord
import urllib.request

from beem import Steem
from beem.account import Account
Expand All @@ -12,8 +13,12 @@
from beem.instance import set_shared_steem_instance
from beem.nodelist import NodeList
from beem.utils import construct_authorperm, addTzInfo
from collections import defaultdict
from discord.ext.commands import Bot

import matplotlib.pyplot as plt #for future use
import sfr_config as cfg

import sfr_config as cfg

logging.basicConfig(level=logging.INFO, filename=cfg.LOGFILE)
Expand All @@ -29,13 +34,12 @@
##################################################
# Uncomment for the initial setup of the database
# cursor.execute('''CREATE TABLE steemflagrewards
# (flagger TEXT, comment TEXT, post TEXT, category TEXT, created TEXT, included BOOL, payout REAL, queue BOOL, weight REAL, followon BOOL)''')
# (flagger TEXT, comment TEXT, post TEXT, category TEXT, created TEXT, included BOOL, payout REAL, queue BOOL, weight REAL, followon BOOL, dust BOOL default '0', approved_by TEXT, mod_included BOOL)''')
# cursor.execute('CREATE TABLE flaggers (name TEXT)')
# cursor.execute('CREATE TABLE sdl (name TEXT, created TEXT, delegation BOOL)')
# db.commit()
##################################################


def get_abuse_categories(comment_body):
"""Returning the matching categories of abuse"""
cats = []
Expand Down

0 comments on commit e99f6bf

Please sign in to comment.