Skip to content

Commit

Permalink
Merge pull request #3 from daedalus/sourcery/master
Browse files Browse the repository at this point in the history
Sourcery refactored master branch
  • Loading branch information
daedalus committed Jan 4, 2024
2 parents dce3c4b + f43f393 commit 5b7483f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oeis_closed_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sqlite3

def getSequence(id):
f = requests.get("https://oeis.org/search?fmt=json&q=id:%s" % id)
f = requests.get(f"https://oeis.org/search?fmt=json&q=id:{id}")
doc = json.loads(f.content)
return [int(x) for x in doc['results'][0]['data'].split(",")]

Expand Down

0 comments on commit 5b7483f

Please sign in to comment.