This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends "base.html" %} | |
| {% block content %} | |
| <div class="jumbotron text-center"> | |
| <h1>Task Editor</h1> | |
| </div> | |
| <div class="container"> | |
| <div class="page_content"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @app.route('/create_task/', methods=['GET', 'POST']) | |
| def create_task(): | |
| """ | |
| Called when a supervisor wishes to create a new task from scratch. | |
| :return: the rendered task creation page | |
| """ | |
| if request.method == 'GET': | |
| form = CreateTaskForm() | |
| return render_template('create_task.html', form=form) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask_wtf import FlaskForm | |
| from wtforms import StringField, PasswordField, DateField, SubmitField, \ | |
| BooleanField, FieldList, FormField, FileField | |
| from wtforms.validators import InputRequired, EqualTo, Email, DataRequired | |
| class DetailedStep(FlaskForm): | |
| """ | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import discord | |
| from discord.ext import commands | |
| import youtube_dl | |
| if not discord.opus.is_loaded(): | |
| # the 'opus' library here is opus.dll on windows | |
| # or libopus.so on linux in the current directory | |
| # you should replace this with the location the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import discord | |
| import time | |
| from discord.ext import commands | |
| import json | |
| from pathlib import Path | |
| import requests | |
| from cogs.blizzard.config import BLIZZARD_API_KEY, \ | |
| is_blizzard_access_token_valid, BLIZZARD_ACCESS_TOKEN |