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

feat: ✨ implementation ocr module for blank guns #556

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

nutfdt
Copy link
Collaborator

@nutfdt nutfdt commented Aug 29, 2024

No description provided.

@leihuayi
Copy link
Contributor

Reste à mettre à jour

  • tests api dans le back
  • tests e2e pour le front

@nutfdt nutfdt marked this pull request as draft August 29, 2024 08:01
@nutfdt nutfdt force-pushed the 544-detection-blank-gun-display branch 4 times, most recently from 98a0619 to ab04d90 Compare August 30, 2024 17:31
@nutfdt nutfdt force-pushed the 544-detection-blank-gun-display branch 2 times, most recently from 2e81fbd to 6d05bac Compare October 7, 2024 18:01
@nutfdt nutfdt force-pushed the 544-detection-blank-gun-display branch 3 times, most recently from fedcc32 to f878059 Compare October 15, 2024 12:04
@nutfdt nutfdt force-pushed the 544-detection-blank-gun-display branch 3 times, most recently from 97e0ee4 to ef0940c Compare October 26, 2024 14:13
Copy link

github-actions bot commented Oct 26, 2024

badge

Code Coverage Summary

Filename               Stmts    Miss  Cover    Missing
-------------------  -------  ------  -------  --------------------------------------
src/__init__.py            0       0  100.00%
src/config.py             45       3  93.33%   79, 81, 83
src/main.py               13       0  100.00%
src/router.py            103      24  76.70%   55, 104-110, 137-140, 161-177, 184-200
src/utils.py              43       5  88.37%   72-74, 92, 96
tests/__init__.py          0       0  100.00%
tests/conftest.py         14       0  100.00%
tests/test_api.py        113       0  100.00%
tests/test_email.py        4       0  100.00%
TOTAL                    335      32  90.45%

Results for commit: f5a6f3f

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

@nutfdt nutfdt marked this pull request as ready for review October 28, 2024 13:19
@nutfdt nutfdt force-pushed the 544-detection-blank-gun-display branch 4 times, most recently from 32b713e to 7024d2b Compare October 28, 2024 13:30
@nutfdt nutfdt force-pushed the 544-detection-blank-gun-display branch 7 times, most recently from e9f7e1b to bd908b3 Compare October 29, 2024 08:33
@@ -138,9 +137,8 @@ const routes: RouteRecordRaw[] = [
},
{
path: "armes-alarme",
name: "IdentificationBlankGun",
component: IdentificationBlankGun,
meta: { title: "Identification" },
Copy link
Collaborator

Choose a reason for hiding this comment

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

C'est volontaire cette modification ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oui je trouve que c'est plus clair de spécifier AlarmGun plutôt que BlankGun, même si techniquement les armes d'alarmes sont des armes à blancs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Mais tu supprimes la clé "meta" c'est normal ?

Copy link
Collaborator Author

@nutfdt nutfdt Oct 31, 2024

Choose a reason for hiding this comment

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

Ah oui my bad, je l'ai reprise

@@ -14,7 +14,8 @@ export const useStore = defineStore("result", {

const selectedOptions = ref([]);
const selectedAmmo = ref(undefined);
const selectedAlarmGun = ref(undefined);
const isAlarmModel = ref(undefined);
Copy link
Collaborator

Choose a reason for hiding this comment

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

On utilise AlarmGun un peu partout, est ce que ce serait pas mieux d'utiliser isAlarmGun ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On a une fonction qui se nomme isAlarmGun() donc j'ai préféré cette syntaxe pour éviter de potentiellement s'embrouiller

export function isAlarmGun() {
  if (
    store.selectedOptions[0] === "revolver_black_powder" ||
    !["pistolet_semi_auto_moderne", "revolver"].includes(store.typology) ||
    store.selectedAmmo === "billes"
  ) {
    return false;
  }
  return store.isAlarmModel ? true : undefined;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Pourquoi ne pas utiliser la fonction isAlarmGun du coup ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

J'ai finalement remplacé par isAlarmGun après coup

@nutfdt nutfdt force-pushed the 544-detection-blank-gun-display branch 13 times, most recently from 9153de3 to 929aa27 Compare October 31, 2024 18:04
@thomashbrnrd thomashbrnrd force-pushed the 544-detection-blank-gun-display branch from 929aa27 to b67b3b5 Compare November 7, 2024 10:52
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.

Ajouter les nouveaux écrans de détection d'arme d'alarme
3 participants