Skip to content

Commit

Permalink
update to use new dummy data
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenezes0 committed Jan 2, 2025
1 parent 862285a commit 2235b79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ make test

## The database

### Generating dummy data [IGNORE FOR NOW: Database models to be updated imminently]

Only run this in development. Will create a consultation with 10 complete
### Generating dummy data
Only run this in development. Will create a consultation with 100 complete
responses in a variety of question formats. This runs as part of `make
dev_environment`, but you can run it more than once.

Expand Down
4 changes: 2 additions & 2 deletions consultation_analyser/support_console/views/consultations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from consultation_analyser.consultations import models
from consultation_analyser.consultations.download_consultation import consultation_to_json
from consultation_analyser.consultations.dummy_data import create_dummy_data
from consultation_analyser.factories2 import create_dummy_consultation_from_yaml
from consultation_analyser.hosting_environment import HostingEnvironment

NO_SUMMARY_STR = "Unable to generate summary for this theme"
Expand All @@ -15,7 +15,7 @@
def index(request: HttpRequest) -> HttpResponse:
if request.POST:
try:
consultation = create_dummy_data()
consultation = create_dummy_consultation_from_yaml()
user = request.user
consultation.users.add(user)
messages.success(request, "A dummy consultation has been generated")
Expand Down

0 comments on commit 2235b79

Please sign in to comment.