Pubsub: increase CSV max field.

feed can be *very* large.
parent 4eb93526
from datetime import datetime import argparse
import csv import csv
import feedparser import feedparser
import httplib # To avoid magic numbers
import io import io
import socket
import json import json
import time
import math import math
import httplib # To avoid magic numbers
import argparse
import os import os
import socket
import sys
import time
from datetime import datetime
from hashlib import sha512 from hashlib import sha512
from atomize import Entry from atomize import Entry
...@@ -19,6 +20,9 @@ from flask import abort ...@@ -19,6 +20,9 @@ from flask import abort
from flask import request from flask import request
app = Flask(__name__) app = Flask(__name__)
# csv entries can be very large, increase limit.
csv.field_size_limit(sys.maxsize)
@app.route('/get/<feed>') @app.route('/get/<feed>')
def get_feed(feed): def get_feed(feed):
global app global app
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment