Skip to content

Commit

Permalink
got the new method to work!
Browse files Browse the repository at this point in the history
  • Loading branch information
Exu-112 committed Jun 14, 2024
1 parent 26afd43 commit 1a47471
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
rv_data = {"source": simple_source, "radial_velocity_km_s": source["rv_lit"], "radial_velocity_error_km_s": source["rverr_lit"],"reference": source["ref_rv_lit"]}
rv_obj = RadialVelocities(**rv_data)
try:
with db.session() as session:
with db.session as session:
session.add(rv_obj)
session.commit()
logger.info(f" Radial Velocity added to database: {rv_data}\n")
Expand Down

0 comments on commit 1a47471

Please sign in to comment.