Skip to content

Commit

Permalink
Update tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Jul 31, 2024
1 parent 2f84a48 commit 1ea4d66
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/tutorial/dagster_cloud.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locations:
- location_name: tutorial
code_source:
package_name: tutorial
module_name: tutorial.definitions
3 changes: 2 additions & 1 deletion examples/tutorial/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.dagster]
module_name = "tutorial"
module_name = "tutorial.definitions"
code_location_name = "tutorial"
9 changes: 0 additions & 9 deletions examples/tutorial/tutorial/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
from dagster import Definitions, load_assets_from_modules

from . import assets

all_assets = load_assets_from_modules([assets])

defs = Definitions(
assets=all_assets,
)
9 changes: 9 additions & 0 deletions examples/tutorial/tutorial/definitions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from dagster import Definitions, load_assets_from_modules

from . import assets

all_assets = load_assets_from_modules([assets])

defs = Definitions(
assets=all_assets,
)
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_signups_for_date(self, date: datetime) -> Sequence[Signup]:
return sorted(signups, key=lambda x: x["registered_at"])

def get_signups_for_dates(
self, start_date: datetime, end_date: Union[datetime, None] = None
self, start_date: datetime, end_date: Union[datetime, None] = None
) -> Sequence[Signup]:
signups = []

Expand Down

0 comments on commit 1ea4d66

Please sign in to comment.