Skip to content

Commit

Permalink
git grep -lF "lmfdb.backend" | xargs sed -i '' -e 's/lmfdb\.backend/p…
Browse files Browse the repository at this point in the history
…sycodict/g'
  • Loading branch information
edgarcosta committed May 7, 2024
1 parent 9624e40 commit ddf903f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Postgres_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ Database Interface

If use `db._execute`, make sure to wrap your statements in the SQL
class from `psycopg2.sql` (you can also import it from
`lmfdb.backend`). You can see lots of examples of this
`psycodict`). You can see lots of examples of this
paradigm in `lmfdb/backend/`.

```python
sage: from lmfdb.backend import db, SQL
sage: from psycodict import db, SQL
sage: cur = db._execute(SQL("SELECT label, dim, cm_discs, rm_discs from mf_newforms WHERE projective_image = %s AND cm_discs @> %s LIMIT 2"), ['D2', [-19]])
sage: cur.rowcount
2
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/uploads/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
uptwo, _ = os.path.split(upone)
sys.path.append(uptwo)
from lmfdb import db
from lmfdb.backend.encoding import copy_dumps
from psycodict.encoding import copy_dumps
from lmfdb.users.main import Reviewer


Expand Down
2 changes: 1 addition & 1 deletion lmfdb/utils/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from sage.misc.lazy_attribute import lazy_attribute
from sage.rings.integer_ring import ZZ
from lmfdb.utils import flash_error, flash_info, pluralize
from lmfdb.backend.encoding import copy_dumps
from psycodict.encoding import copy_dumps
from lmfdb import db

class UploadBox():
Expand Down
2 changes: 1 addition & 1 deletion scripts/artin_representations/import_art_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sys.path.append(mypath)

from lmfdb import db
from lmfdb.backend.encoding import copy_dumps
from psycodict.encoding import copy_dumps

rep=db.artin_reps
nfgal=db.artin_field_data
Expand Down
2 changes: 1 addition & 1 deletion scripts/classical_modular_forms/check_ap2_amn_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),"../.."))
except NameError:
pass
from lmfdb.backend import db
from psycodict import db
from sage.all import CC, prime_range, gcd
from lmfdb.characters.TinyConrey import ConreyCharacter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sage.all import matrix, vector, PolynomialRing, ZZ, NumberField, ComplexField
import sys, os
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),"../.."))
from lmfdb.backend import db
from psycodict import db
ZZx = PolynomialRing(ZZ, "x")

def convert_eigenvals_to_qexp(basis, eigenvals, normalization):
Expand Down
2 changes: 1 addition & 1 deletion scripts/reports/jsonify_db_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#import time
from collections import defaultdict
from lmfdb.inventory_app.id_object import get_description
from lmfdb.backend import db
from psycodict import db

__version__ = '1.0.0'

Expand Down

0 comments on commit ddf903f

Please sign in to comment.