Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use case for create new records added #60

Merged
merged 5 commits into from
Dec 15, 2023
Merged

use case for create new records added #60

merged 5 commits into from
Dec 15, 2023

Conversation

geopin90
Copy link
Collaborator

No description provided.

) -> Result<(), Error> {
let (area_name, product_name) = match &record[0] {
"этикеровка" => match &record[4] {
"C95-230" => ("малые картонные этикетки", "стакан полипропилен"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id must be used instead of name

@@ -155,7 +175,7 @@ pub fn save_half_stuff_cups(app: &Application) -> Result<(), Error> {
Err(_) => return Err(Error::new(ErrorKind::InvalidData, "can't find an area")), // TODO handle IO error differently!!!!
};

if area["name"].as_str() == Some("стакан термоформовка") {
if area["name"].as_str() == Some(area_name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id?

Err(_) => return Err(Error::new(ErrorKind::InvalidData, "can't find an area")), // TODO handle IO error differently!!!!
};

if area["name"].as_str() == Some("термоусадочная этикетка")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id?

@shabanovd shabanovd merged commit 4c818b0 into main Dec 15, 2023
1 of 3 checks passed
@shabanovd shabanovd deleted the new_usecase branch December 15, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants