Skip to content

Commit

Permalink
Move date accessed back to base
Browse files Browse the repository at this point in the history
  • Loading branch information
micah-prime committed Sep 23, 2024
1 parent eb1e568 commit f8feed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion snowexsql/tables/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""

from geoalchemy2 import Geometry
from sqlalchemy import Column, Float, Integer, Time
from sqlalchemy import Column, Float, Integer, Time, Date
from sqlalchemy.orm import DeclarativeBase


Expand All @@ -18,6 +18,7 @@ class Base(DeclarativeBase):
__table_args__ = {"schema": "public"}
# Primary Key
id = Column(Integer, primary_key=True)
date_accessed = Column(Date)


class SingleLocationData:
Expand Down
4 changes: 1 addition & 3 deletions snowexsql/tables/doi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from sqlalchemy import Column, String, Integer, ForeignKey, Date
from sqlalchemy import Column, String, Integer, ForeignKey
from sqlalchemy.orm import relationship, declared_attr

from .base import Base
Expand All @@ -24,5 +24,3 @@ def doi_id(cls):
@declared_attr
def doi(cls):
return relationship('DOI')

date_accessed = Column(Date)

0 comments on commit f8feed0

Please sign in to comment.