<commit_before><template> 
    <b-col class="pref foot-icon">
        <img :src="pref.filepath" alt="">
        <b-button variant="danger" type="submit" @click="deletePref"><i class="fa fa-times" aria-hidden="true"></i></b-button>
    </b-col>
</template>

<script>
import axios from 'axios'
 export default { 
     name: 'Pref', 

     props: {
         pref: {
             type: Object,
             required: true
         }
     },
     
     created() {
         console.log(this.pref.idpref);
     },
     
     data() {
         return {
        
         }
     },
     
     methods: {
         deletePref() {
             axios({
              method: 'DELETE',
              url: 'http://localhost:8060/pessoas/3/preferencias' + '/' + this.pref.idpref,
             //headers: { 'Content-Type': 'application/json' },
            });
            window.location.reload();
        }
   }
}
</script>

<style>

</style><commit_msg>Corrigindo erro ao excluir preferências<commit_after><template> 
    <b-col class="pref foot-icon">
        <img :src="pref.filepath" alt="">
        <b-button variant="danger" type="submit" @click="deletePref"><i class="fa fa-times" aria-hidden="true"></i></b-button>
    </b-col>
</template>

<script>
import axios from 'axios'
 export default { 
     name: 'Pref', 

     props: {
         pref: {
             type: Object,
             required: true
         }
     },
     
     created() {
         console.log(this.pref.idpref);
     },
     
     data() {
         return {
        
         }
     },
     
     methods: {
         deletePref() {
             axios({
              method: 'DELETE',
              url: 'http://localhost:8060/pessoas/3/preferencias' + '/' + this.pref.idpref,
            });
             
            //window.location.reload();
        }
   }
}
</script>

<style>

</style>
{'fraction_non_alphanumeric': 0.16307857911733045, 'fraction_numerical': 0.005382131324004306, 'mean_word_length': 1.5155615696887685, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7534969', 'n_tokens_mistral': 593, 'n_tokens_neox': 577, 'n_words': 100}